package bookdemo.service;

import bookdemo.domain.Book;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
//没有使用，自己写的业务层次
public interface BookService {

    Boolean save(Book book);

    Boolean update(Book book);

    Boolean delete(Integer id);

    Book getById(Integer id);

    List<Book> getAll();

    IPage<Book> getPage(int currentPage,int pageSize);
}
